package ro.isdc.training.ejb3.course.domain;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import ro.isdc.training.ejb3.misc.domain.BusinessEntity;

/**
 * Didactic field of study. Encapsulates a course category in general.
 * 
 * @author Andrei Chirila
 */
public class DidacticField extends BusinessEntity {

	/**
	 * Generated Serial Version UID
	 */
	private static final long serialVersionUID = 8246473754831726437L;

	/**
	 * Name of the field
	 */
	private String fieldName;

	/**
	 * @return the fieldName
	 */
	public String getFieldName() {
		return fieldName;
	}

	/**
	 * @param fieldName
	 *          the fieldName to set
	 */
	public void setFieldName(final String fieldName) {
		this.fieldName = fieldName;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append(
				"entityId", this.entityId).append("fieldName", this.fieldName).append(
				"versionNo", this.versionNo).append("creationTimestamp",
				this.creationTimestamp).append("lastUpdateTimestamp",
				this.lastUpdateTimestamp).toString();
	}

}
